#!/usr/bin/env python

import wsgiref.handlers

from google.appengine.ext import webapp

import index

from actions import update
from actions import post
from actions import register
from actions import save

def main():
     application = webapp.WSGIApplication(
          [
               ('/', index.MainHandler),
               ('/actions/update', update.UpdateHandler),
               ('/actions/post', post.PostHandler),
               ('/actions/register', register.RegisterHandler),
               ('/actions/save', save.SaveHandler)
          ], 
          debug=True)
     wsgiref.handlers.CGIHandler().run(application)
     
if __name__ == '__main__':
     main()
